<meta charset="UTF-8">

<img src="2.png" id="tank"
style="position:absolute;left:20px;top:20px;"/>
<script>
    var x = 20;

  function tankPao(){
      tank.style.left = x++;
  }
  setInterval(tankPao,10);
</script>
